<?php #coding: utf-8 æ ø å ?
// TEMPLATE BOG PÅ PULT - TO SPALTER
// Dette layout kræver to typer $indhold og i controlleren:
//		$indhold_left -->  $content_left
//		$indhold_right --> $content_right 
//if(!isset($content_right)){ $content_right = "includes/fejl/tom"; }
//if(!isset($content_left)){ $content_left = "includes/fejl/tom"; }


// SIDEHOVEDER
// Disse to variable bliver vist på hhv højre og ventre side øverst i den åbne bog.
// Oftes defineres de i controlleren som en del af variablen $data.
// $overskrift_left = "";
// $overskrift_right = "";
// så fremt de ikke er defineret, sættes de tomme her:
if(!isset($overskrift_right)){ $overskrift_right = "includes/fejl/tom"; }
if(!isset($overskrift_left)){ $overskrift_left = "includes/fejl/tom"; }

// Sidehovederne indeholder også to små overskrifter til højre og venstre for hver overskrift, hvis de ikke er defineret, sættes de tomme her:
//if(!isset($left_sidehoved_left)){ $left_sidehoved_left = ""; }
//if(!isset($left_sidehoved_right)){ $left_sidehoved_right = ""; }
if(!isset($sidehoved_left)){ $sidehoved_left = "includes/fejl/tom"; }
if(!isset($sidehoved_right)){ $sidehoved_right = "includes/fejl/tom"; }

// SIDEFØDDER
// Disse to variable bliver vist på hhv højre og ventre side nederst i den åbne bog.
// Oftes defineres de i controlleren som en del af variablen $data.
// $underskrift_left = "";
// $underskrift_right = "";
// så fremt de ikke er defineret, sættes de tomme her:
//if(!isset($underskrift_right)){ $underskrift_right = array(); }
if(!isset($sidefod_left)){ $sidefod_left = "includes/fejl/tom"; }
if(!isset($sidefod_right)){ $sidefod_right = "includes/fejl/tom"; }


	// Loader headeren: HTML5, style sheets og javascripts 
		$this->load->view('includes/headers/header');
	//$this->load->view('forvalter/rediger');//dropdown
	
	 	
	// Loader vindue til søgning henover bogen som udtones
	//$this->load->view('soeg/lup_overlay'); ?>

<div id="db_busy">
<? echo br(3); ?>	
<p id="busy_message">
	<? echo br(3); ?>
	Skriver til Almanakken
</p>

</div>


<!-- MAIN WRAPPER -->
<div class="row-fluid">

<? 
	###########
	## POPUP ##
	###########
	/*
	 * Popup kaldes, ved at definere variablen $popup i controlleren.
	 * $popup = array('view-sti','showhide')
	 * view-sti: (string) viser vej til det view der skal hentes i popuppen.
	 * showhide: (string) "show": når siden hentes er popuppen vist; "hide": når siden hentes er popuppen skjult. Default: "show".
	 */

if(isset($popup['view-sti'])) {
	 
	$showhide_postinput = $this->input->post("popup_showhide");
	if(isset($showhide_postinput) and ($showhide_postinput == "show" or $showhide_postinput == "hide")){
		$popup['showhide'] = $showhide_postinput;
	}
	if(!isset($popup['showhide'])){ $popup['showhide'] = "hide"; }
	?>
			<div class="popup" style="<? if($popup['showhide']=="hide"){ echo "display:none"; }?>">
				<div class="span2" ></div>
				
				<div class="span8" >
					<div class="papir">
						<? $this->load->view($popup['view-sti']); ?>
						<h1 class="rubrik" style="cursor:pointer;float:right;" id="luk_popup">luk</h1><br>
					</div>
				</div>
				
				<div class="span2" ></div>
				
			</div>		


<? } ?>
	<!-- HEADING WRAPPER -->
	<div class="row-fluid heading" style="opacity:0.5;">

		<!-- HEADING INDHOLD -->
		<div class="row-fluid" >

			<!-- HEADING LEFT -->
			<div class="span6" style="min-height:3px;" >
				<div class="heading-content hidden-phone">


					<div class="row-fluid">


							<? $this->load->view($sidehoved_left); ?>

					</div>



				</div>

				<!-- HEADING PHONE: SKÆRMBREDDE 676 PIXELS ELLER LAVERE -->
				<div class="heading-content-phone hidden-tablet hidden-desktop">

						<? $this->load->view("includes/banners/header_phone"); ?> 

				<!-- END HEADING PHONE:-->
				</div>

			<!-- END HEADING LEFT -->
			</div>

			<!-- HEADING RIGHT -->
			<div class="span6"  style="min-height:0px;">

				<? $this->load->view($sidehoved_right); ?> 

			<!-- END HEADING RIGHT -->
			</div>
		<!-- END HEADING INDHOLD -->
		</div>

		<!-- HEADING LINIER -->
		<div class="row-fluid" >
			<div class="span6"  style="min-height:3px;">
				<div class="heading-linie"></div>
			</div>
			<div class="span6"  style="min-height:3px;">
				<div class="hidden-phone heading-linie"></div>
			</div>
		<!-- END HEADING LINIER -->
		</div>

	<!-- END HEADING WRAPPER  -->		
	</div>


	<!-- CONTENT WRAPPER  -->	
	<div class="row-fluid content-wrapper" >

		<!-- LEFT COLUMN  -->	
		<div class="span6" >

			<!-- CONTENT LEFT WRAPPER-->	
			<div class="row-fluid">

				<!-- CONTENT LEFT -->	
				<div class="content hidden-phone" >

							    <?
								/*	$deltager = $this->session->userdata("deltager");
									$ingame = $this->session->userdata("ingame");
									if($deltager["is_logged_in"] == 1 and !empty($ingame)) {
										
										$this->load->view("includes/banners/skift_blik");
									}*/

									if(!empty($content_left))
								    {
									
									    foreach($content_left as $content)
									    {
										    if(!empty($content))
										    {
											    $this->load->view($content);
										    }
									    }
								    }
							    ?>
				
				<!-- END CONTENT LEFT -->	
				</div>

				<!-- LEFT CONTENT PHONE -->	
				<div class="hidden-desktop hidden-tablet">
					<div class="content " id="left-nav" >
					
									<?php /* 		

										if(!empty($content_left))
										{
									
											foreach($content_left as $content)
											{
												if(!empty($content))
												{
													$this->load->view($content);
												}
											}
										}
								*/	
								
								?>
				
					</div>

				<!-- END LEFT CONTENT PHONE -->	
				</div>

			<!-- END CONTENT LEFT WRAPPER-->	
			</div>

			<!-- PHONE HANDLE -> TIL AT TRÆKKE DEN SKULTE VENSTRE KOLONNE NED PÅ PHONE LAYOUT-->
			<div class="row-fluid hidden-desktop hidden-tablet" >
				<div class="span12" style="min-height:0px;">
					<div class="content" >
						<div class="phone-drag"><h1 class="ink"><? echo $overskrift_right; ?></h1></div>
					</div>
				</div>
			<!-- END PHONE HANDLE -->
			</div>
		
		<!-- END LEFT COLUMN  -->	
		</div>

		<!-- RIGHT COLUMN  -->	
		<div class="span6" >

			<!-- CONTENT RIGHT WRAPPER  -->
			<div class="row-fluid" >

				<!-- CONTENT RIGHT  -->
				<div class="content" >
					

							    <?php 
								    if(!empty($content_right))
								    {
									
									    foreach($content_right as $content)
									    {
										    if(!empty($content))
										    {
											    $this->load->view($content);
										    }
									    }
								    }
							    ?>

				<!-- END CONTENT RIGHT  -->
				</div>


			<!-- END CONTENT RIGHT WRAPPER  -->
			</div>

		<!-- END RIGHT COLUMN  -->	
		</div>

	<!-- END CONTENT WRAPPER  -->	
	</div>



	<!-- FOOTING WRAPPER -->
	<div class="row-fluid footing" >
		<div id="knast" class="hidden-phone" ></div>
		<?  $this->load->view("includes/test/bookmarks"); ?>
		<?  $this->load->view("includes/test/find"); ?>


		<!-- FOOTING INDHOLD -->
		<div class="row-fluid" >

			<!-- FOOTING LINIER -->
			<div class="row-fluid" >
				<div class="span6"  style="min-height:3px;">
					<div class="heading-linie"></div>
				</div>
				<div class="span6"  style="min-height:3px;">
					<div class="hidden-phone heading-linie"></div>
				</div>

			<!-- END FOOTING LINIER -->
			</div>
			

			<div class="row-fluid" >

				<!-- FOOTING LEFT -->
				<div class="span6" style="min-height:3px;" >
					<? $this->load->view($sidefod_left);  ?>

				<!-- END FOOTING LEFT -->
				</div>

				<!-- FOOTING RIGHT -->
				<div class="span6" style="min-height:3px;">
					<? $this->load->view($sidefod_right);  ?>
	

				<!-- END FOOTING RIGHT -->
				</div>


			</div>

		<!-- END FOOTING INDHOLD -->
		</div>

	<!-- END FOOTING WRAPPER  -->		
	</div>


<!-- END MAIN WRAPPER -->
</div>

		<? //$this->load->view('includes/footers/bootstrap_loadjquery'); //21/02/2014, Nor: denne her gør et eller andet grimt ved dropdown-jquery'en, der bruges i forvalter/rediger-viewet.?>
<script type="text/javascript" src="<? echo base_url(); ?>scripts/soeg.js"></script>
		<? //$this->load->view('includes/footers/phone_drag');?>
		<? $this->load->view('includes/footers/footer');?>
 
